package com.zyq.globalException.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class UserController {

    @GetMapping("/user")
    public String getUser() {
        log.info("UserController.getUser");
        System.out.println(5/0);
        return "user";
    }


    @GetMapping("/user2")
    public String getUser2() {
        log.info("UserController.getUser2");
        return "zyq-user";
    }

}
